﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EasyTrader
{
    public class PureHogaSummitSysVar
    {
        public static bool LastSignalFired = false;

        public static bool EnablePerLossLiquid = false;
        public static bool EnablePerProfitLiquid = false;
        public static double PerLossLiquidValue = 60;
        public static double PerProfitLiquidValue = 100;

        public static bool EnableTotalLossLiquid = false;
        public static bool EnableTotalProfitLiquid = false;
        public static double TotalLossLiquidValue = 75;
        public static double TotalProfitLiquidValue = 15;

        public static int FirstSignalType = GlobalVar.FirstSigByHogaAngle;

        public static double LossMargin = 0.05;
        public static double MinTurnHeight = 0.4;
        public static int MinTurnHogaDelta = 200;
        public static int MinTurnHogaMaxMinDelta = 400;
        public static int OrderStartHour = 9;
        public static int OrderStartMin = 0;
        public static int OrderEndHour = 14;
        public static int OrderEndMin = 00;
        public static int SysStartState = 1;
        public static int SysEndState = 5;
        public static int PerOrderAmount = 1;
        public static int SysStartHour = 9;
        public static int SysStartMin = 0;
        public static int SysEndHour = 14;
        public static int SysEndMin = 58;
        public static bool AutoOrder = false;
        // 2시를 기점으로 더이상 신호를 받지 않음.
        public static int LastIndex = 330;
        public static int BSPowerStartIndex = 90;
        // 원웨이 파악을 위한 변수들
        public static int MinTimeOcc = 90;
        public static int MinSquareOcc = 5;

        public static bool EnterByClose = false;
        public static bool LiquidByClose = true;

        public static int OneWayMinHoga = 3500;

        public static double MinDayAmp = 1.2;

        public static int MinAveVal = 5;

        public static int MinLiquidHogaDelta = 300;

        public static int MinLiquidHogaMargin = 100;

        public static double TotalProfitStepLiquidVal = StepLiquidVal;
        public static double StepLiquidVal = 50;
        public static bool EnableTotalProfitStepLiquid = false;
        public static int PerLiquidOrderAmount = 1;

        public static bool EnableStateCountStepLiquid = false;
        public static int StepLiquidStateCount = 1;

        public static bool EnableProfitTrailStop = false;
        public static double MaxProfit = 0.0;
        public static double MaxProfitLiquidVal = 25;
        public static double MinProfit = 50;

        public static int OrderTarget = GlobalVar.OrderTargetFuture;
        public static int FirstMaxOrderAmount = 3;
    }
}
